package icegps.com.pingdj.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;

import java.io.Serializable;

/**
 * Created by 111 on 2018/4/3.
 */
@Entity
public class WorkBean implements Serializable{
    @Id
    private Long id;
    private int workAction;
    private double startLongitude;
    private double startLatitude;
    private double startSetHeight;
    private double endLongitude;
    private double endLatitude;
    private double endSetHeight;
    private double offset;
    private int type;
    private Long time;
    private double startEndDistance;
    private double gradient;
    private double slopePercent;
    static final long serialVersionUID = 42L;



    @Generated(hash = 633364506)
    public WorkBean(Long id, int workAction, double startLongitude,
            double startLatitude, double startSetHeight, double endLongitude,
            double endLatitude, double endSetHeight, double offset, int type,
            Long time, double startEndDistance, double gradient,
            double slopePercent) {
        this.id = id;
        this.workAction = workAction;
        this.startLongitude = startLongitude;
        this.startLatitude = startLatitude;
        this.startSetHeight = startSetHeight;
        this.endLongitude = endLongitude;
        this.endLatitude = endLatitude;
        this.endSetHeight = endSetHeight;
        this.offset = offset;
        this.type = type;
        this.time = time;
        this.startEndDistance = startEndDistance;
        this.gradient = gradient;
        this.slopePercent = slopePercent;
    }

    @Generated(hash = 1589927672)
    public WorkBean() {
    }




    public int getWorkAction() {
        return workAction;
    }

    public WorkBean setWorkAction(int workAction) {
        this.workAction = workAction;
        return this;
    }

    public double getStartLongitude() {
        return startLongitude;
    }

    public WorkBean setStartLongitude(double startLongitude) {
        this.startLongitude = startLongitude;
        return this;
    }

    public double getStartLatitude() {
        return startLatitude;
    }

    public WorkBean setStartLatitude(double startLatitude) {
        this.startLatitude = startLatitude;
        return this;
    }

    public double getStartSetHeight() {
        return startSetHeight;
    }

    public WorkBean setStartSetHeight(double startSetHeight) {
        this.startSetHeight = startSetHeight;
        return this;
    }

    public double getEndLongitude() {
        return endLongitude;
    }

    public WorkBean setEndLongitude(double endLongitude) {
        this.endLongitude = endLongitude;
        return this;
    }

    public double getEndLatitude() {
        return endLatitude;
    }

    public WorkBean setEndLatitude(double endLatitude) {
        this.endLatitude = endLatitude;
        return this;
    }

    public double getEndSetHeight() {
        return endSetHeight;
    }

    public WorkBean setEndSetHeight(double endSetHeight) {
        this.endSetHeight = endSetHeight;
        return this;
    }

    public double getOffset() {
        return offset;
    }

    public WorkBean setOffset(double offset) {
        this.offset = offset;
        return this;
    }

    @Override
    public String toString() {
        return workAction + "," +
                startLongitude + "," +
                startLatitude + "," +
                startSetHeight + "," +
                endLongitude + "," +
                endLatitude + "," +
                endSetHeight + "," +
                offset;
    }

    public Long getId() {
        return this.id;
    }

    public WorkBean setId(Long id) {
        this.id = id;
        return this;
    }

    public Long getTime() {
        return time;
    }

    public WorkBean setTime(Long time) {
        this.time = time;
        return this;
    }

    public int getType() {
        return type;
    }

    public WorkBean setType(int type) {
        this.type = type;
        return this;
    }

    public double getStartEndDistance() {
        return this.startEndDistance;
    }

    public WorkBean setStartEndDistance(double startEndDistance) {
        this.startEndDistance = startEndDistance;
        return this;
    }

    public double getGradient() {
        return this.gradient;
    }

    public WorkBean setGradient(double gradient) {
        this.gradient = gradient;
        return this;
    }

    public double getSlopePercent() {
        return this.slopePercent;
    }

    public WorkBean setSlopePercent(double slopePercent) {
        this.slopePercent = slopePercent;
        return this;
    }

}
